<!DOCTYPE html>
<html>
<head lang="en">
  <meta charset="UTF-8">
  <title>东家帮-用户注册</title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="format-detection" content="telephone=no">
	<meta name="renderer" content="webkit">
	<meta http-equiv="Cache-Control" content="no-siteapp" />
	<link rel="alternate icon" type="image/png" href="${base}/amazeui/assets/i/favicon.png">
	<link rel="stylesheet" href="${base}/css/common.css"/>
	<link rel="stylesheet" href="${base}/amazeui/assets/css/amazeui.min.css"/>
	<link rel="stylesheet" href="${base}/css/index.css"/>
	<base href="${base}/index/">
	<style type="text/css">
	  body { background: white;}
	  </style>
</head>
<body>
<div class="res-main">
	<div class="login-banner-bg"></div>
	<div class="login-box">

			<div class="am-tabs" id="doc-my-tabs">
				<ul class="am-tabs-nav am-nav am-nav-tabs am-nav-justify">
					<li  class="am-active"><a href="">手机号注册</a></li>
				</ul>

				<div class="am-tabs-bd" style="touch-action: pan-y; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: rgba(0, 0, 0, 0);">

					<div class="am-tab-panel am-active">
						<form method="post" name="loginform"  id="loginform" class="am-form" action="${base}/index/usersave">
			                <div class="user-phone">
							    <label for="phone"><i class="am-icon-mobile-phone am-icon-md"></i></label>
							    <input type="tel" name="phone" id="phone" placeholder="请输入手机号" style="padding-left: 40px;">
			                </div>																			
							<div class="verification">
								<label for="code"><i class="am-icon-code-fork"></i></label>
								<input type="tel" name="code" id="code" placeholder="请输入验证码" maxlength="4" style="padding-left: 40px;">
								<a class="btn" href="javascript:void(0);" onclick="sendMobileCode();" id="sendMobileCode">
									<span id="dyMobileButton">获取</span></a>
							</div>
			                <div class="user-pass">
								<label for="password"><i class="am-icon-lock"></i></label>
								<input type="password" name="password" id="password" placeholder="设置密码" style="padding-left: 36px;">
			                </div>										
						</form>
<!-- 								 <div class="login-links"> -->
<!-- 										<label for="reader-me"> -->
<!-- 											<input id="reader-me" type="checkbox"> 点击表示您同意商城《服务协议》 -->
<!-- 										</label> -->
<!-- 							  	</div> -->
							<div class="am-cf">
								<input type="submit" id="submit"  onclick="save();" value="注册" class="am-btn am-btn-primary am-btn-sm am-fl">
							</div>
					
						<hr>
					</div>

				</div>
			</div>

	</div>
</div>
</body>
<script type="text/javascript" src="${base}/js/common.js"></script>
<script src="${base}/js/jquery1.10.2.min.js" ></script>
<script src="${base}/js/jquery.form.js" ></script>
<script>
	function sendMobileCode(){
		alert("发送成功！");
	}
	function save(){
		var options = {
            success:  showResponse2,  //处理完成的回调函数
            resetForm: true
        };
        $("#loginform").ajaxSubmit(options);
	}
	function showResponse2(responseText)  {
		alert(responseText);
		window.location.href = "${base}/index/main";
	}
</script>
</html>
